<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>运行结果<div id="result"></div>
    <script>
        var red,white,black;
        for(red=0;red<=25;red++){
                white=25-red;
                black=31-white;
                if(red+black===28){
                    document.getElementById("result").innerText="red="+red+",white="+white+",black="+black;
                    console.log(red,white,black)
                }
            }
    </script>
</body>
</html>